<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
    
<jsp:include page="../header.jsp"/>

<c:choose>
	<c:when test="${loggedUser eq null}">
		Witaj na stronie<br>
		<a href="logowanie.html">Zaloguj się</a> lub 
		<a href="rejestracja.html">zarejestruj</a>, aby móc korzystać z portalu.
	</c:when>
	<c:otherwise>
		<% response.sendRedirect("home.html"); %>
	</c:otherwise>
</c:choose>

<jsp:include page="../footer.jsp"/>
